<template>
    <fieldset>
        <legend>父组件</legend>
        <Child />
    </fieldset>
</template>
<script>
    import Child from './child.vue';
    export default {
        components: { Child },
        beforeCreate() {
            console.log('父组件的beforeCreate')
        },
        created() {
            console.log('父组件的created')
        },
        beforeMount() {
            console.log('父组件的beforeMount')
        },
        mounted() {
            console.log('父组件的mounted')
        },
        beforeDestroy() {
            console.log('父组件的beforeDestroy')
        },
        destroyed() {
            console.log('父组件的destroyed')
        }
    }
</script>